package com.bm.api.service;

import com.bm.common.dto.StudentDto;
import com.bm.common.dto.TeacherDto;
import com.bm.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description:
 * @Author: 赵金帅
 * @Date: 2022/07/24/15:12
 */
@FeignClient(value = "bm-Server")
public interface TeacherService {
    @GetMapping("/server/tea/selecttea.do")
    R selectTea();
    @GetMapping("/server/tea/selectstu.do")
    R selectStu(@RequestParam Integer tid);
    @PostMapping("/server/tea/savestu.do")
    R saveStu(@RequestBody StudentDto dto);
    @PostMapping("/server/tea/savetea.do")
    R saveTea(@RequestBody TeacherDto dto);
}
